Page({
	data: {
		PageCur: 'home'
	},
	onLoad: function(options) {
		if (options.cur) {
			this.setData({
				PageCur: options.cur
			})
		}
		var dealer = wx.getStorageSync('dealer')
		if(!dealer || dealer==undefined){
			wx.reLaunch({
				url: '/pages/home/dealer/dealer'
			})
		}
	},
	gengxin: function(ee) {
		this.header = this.selectComponent("#mymember");
		this.header.geng()
	},
	setcart: function() {
		this.setData({
			PageCur: 'classify'
		})
	},
	NavChange(e) {
		this.setData({
			PageCur: e.currentTarget.dataset.cur
		})
	},
	onShareAppMessage() {
		return {
			title: '优源',
			imageUrl: '/images/share.jpg',
			path: '/pages/index/index'
		}
	}
})
